using Cache.Redis;
using Common;
using Model.Table;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace Service.Table
{
    public class TableBuilding : TableBase
	{
        public const string Tablename = "Table_Building";

		public int mId;
		public int mBuildingType;
		public int mCategoyType;
		public int[] mSize;
		public string mExpType;

		public override string GetTableName()
		{
			return Tablename;
		}

		public override void ParseToObject(Dictionary<string,object> _dic)
		{
			mId = int.Parse(_dic["id"].ToString());
			mBuildingType = int.Parse(_dic["building_type"].ToString());
			mCategoyType = int.Parse(_dic["categoy_type"].ToString());

			string str_size = _dic["size"].ToString();
			string[] ary_size = str_size.Split('|');
			mSize = new int[2];
			mSize[0] = int.Parse(ary_size[0]);
			mSize[1] = int.Parse(ary_size[1]);

			mExpType = _dic["exp_type"].ToString();
		}
	}

}